package com.khoinguyen.feedtweet.test;

import java.util.List;

import com.khoinguyen.feedtweet.business.TwitterBusiness;
import com.khoinguyen.feedtweet.dao.UserDao;
import com.khoinguyen.feedtweet.model.VOUser;

public class FetchAllFriends {
	public static void fetchAllFollowees(String username) {
		List<Long> ids = TwitterBusiness.getFolloweeByName(username);
		for (long id : ids) {
			VOUser voUser = new VOUser(id, null, null);
			UserDao.insertUser(voUser);
		}
	}
	
	public static void main(String[] args) {
		fetchAllFollowees("BarackObama");
	}
}
